<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>欢迎页面MongodbWebAdmin工具<</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" href="../static/css/font.css">
		<link rel="stylesheet" href="../static/css/weadmin.css">
	</head>
	<body>
		<div class="weadmin-body">			
			<ul class="layui-timeline">
			  <li class="layui-timeline-item">
			    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
			    <div class="layui-timeline-content layui-text">
			      <h3 class="layui-timeline-title">查询方法(组装成json数据请求后台)</h3>
			      <p>
			        <br>查询指定的key: {"openid": "owibYt4P6Yu7gzsKdamO8CtRGxNk"}
			         <br>json中嵌套json查询指定的key:{"params.uid":65950}
			      </p>
			    </div>
			  </li>
			  <li class="layui-timeline-item">
			    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
			    <div class="layui-timeline-content layui-text">
			      <h3 class="layui-timeline-title">使用 (<=) 和 (>=) 查询</h3>
			      <ul>
			        <li>{"createtime": {$gte: "2017-01-27 18:24:38", $lte: "2017-05-27 18:24:38"}}</li>
			      </ul>
			    </div>
			  </li>
			  <li class="layui-timeline-item">
			    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
			    <div class="layui-timeline-content layui-text">
			      <h3 class="layui-timeline-title">使用  $in 查询</h3>
			      <ul>
			        <li>{"id":{$in:"1,2,3,4,5,6"}</li>
			      </ul>
			    </div>
			  </li>
			  <li class="layui-timeline-item">
			    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
			    <div class="layui-timeline-content layui-text">
			      <h3 class="layui-timeline-title">使用  $regex 模糊查询</h3>
			      <ul>
			        <li>{"city":{"$regex":"广"}</li>
			      </ul>
			    </div>
			  </li>
			   <li class="layui-timeline-item">
			    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
			    <div class="layui-timeline-content layui-text">
			      <h3 class="layui-timeline-title">使用 多条件组合查询</h3>
			      <ul>
			        <li>{"city":{"$regex":"广"},"province":"广东","subscribe":1,"sourceType":{"$in":["304517"]}}</li>
			      </ul>
			    </div>
			  </li>
			  <li class="layui-timeline-item">
			    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
			    <div class="layui-timeline-content layui-text">
			      <h3 class="layui-timeline-title">使用$group分组查询</h3>
			      <ul>
			        <li>http://www.runoob.com/mongodb/mongodb-window-install.html</li>
			      </ul>
			    </div>
			  </li>
			   <li class="layui-timeline-item">
			    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
			    <div class="layui-timeline-content layui-text">
			      <h3 class="layui-timeline-title">更多查询条件 参考</h3>
			      <ul>
			        <li>http://www.runoob.com/mongodb/mongodb-window-install.html</li>
			      </ul>
			    </div>
			  </li>
			</ul>
			</div>
			<div style="clear: both;overflow: hidden; margin-top: 10px;">
				<blockquote class="layui-elem-quote">
					<a href="http://fly.layui.com/case/2018/" target="_blank">Copyright ©2018 Mongodb WeAdmin v1.0管理工具</a>
				</blockquote>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../lib/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript">
		layui.extend({
			admin: '{/}../static/js/admin',
		});
		layui.use(['jquery', 'element','util', 'admin', 'carousel'], function() {
			var element = layui.element,
				$ = layui.jquery,
				carousel = layui.carousel,
				util = layui.util,
				admin = layui.admin;
			//建造实例
			carousel.render({
				elem: '.weadmin-shortcut'
				,width: '100%' //设置容器宽度				
				,arrow: 'none' //始终显示箭头	
				,trigger: 'hover'
				,autoplay:false
			});
			
			carousel.render({
				elem: '.weadmin-notice'
				,width: '100%' //设置容器宽度				
				,arrow: 'none' //始终显示箭头	
				,trigger: 'hover'
				,autoplay:true
			});
			
			$(function(){
				setTimeAgo(2018,0,1,13,14,0,'#firstTime');
				setTimeAgo(2018,2,28,16,0,0,'#lastTime');
			});
			function setTimeAgo(y, M, d, H, m, s,id){
			    var str = util.timeAgo(new Date(y, M||0, d||1, H||0, m||0, s||0));
			    $(id).html(str);
			    console.log(str);
			 };
		});
	</script>

</html>